home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 50
/
Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso
/
Aminet
/
text
/
edit
/
tecoc-146.lha
/
exectz.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-05
|
913b
|
34 lines
/*****************************************************************************
ExeCtZ()
This function executes a control-Z command.
^Z <CTRL/Z> (caret/Z) is equivalent to the total space
occupied by text in the Q-registers (including the
command line currently being executed).
*****************************************************************************/
#include "zport.h" /* define portability identifiers */
#include "tecoc.h" /* define general identifiers */
#include "defext.h" /* define external global variables */
DEFAULT ExeCtZ() /* execute a ^Z (control-Z) command */
{
LONG TmpLng;
WORD TmpWrd;
DBGFEN(1,"ExeCtZ",NULL);
TmpLng = (CStEnd - CStBeg) + 1;
for (TmpWrd = 0; TmpWrd < 36; ++TmpWrd) {
TmpLng += QRgstr[TmpWrd].End_P1 - QRgstr[TmpWrd].Start;
}
#if DEBUGGING
sprintf(DbgSBf,"PushEx(%ld)", TmpLng);
DbgFEx(1,DbgFNm,DbgSBf);
#endif
return PushEx(TmpLng,OPERAND);
}